<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Escola</title>
            </f:facet>
        </h:head>

        <h:body>

            <ui:composition template="/paginas/home.xhtml">
<ui:define name="REFERENCIA">
<h:form>

RA:
<p:inputText value="#{MBaluno.beanAluno.ra}"/>
<br/>
Nome:
<p:inputText value="#{MBaluno.beanAluno.nome}"/>
<br/>
Periodo:
<p:inputText value="#{MBaluno.beanAluno.periodo}"/>
<br/>
Nota 1:
<p:inputText value="#{MBaluno.beanAluno.nota1}"/>
<br/>
Nota 2:
<p:inputText value="#{MBaluno.beanAluno.nota2}"/>
<br/>
Faltas:
<p:inputText value="#{MBaluno.beanAluno.falta}"/>
<br/>
Turma:
<f:selectItems value="#{MBturma.lista}" var="turma" itemLabel="#{turma.nome}" itemValue="#{turma.cod}">
</f:selectItems>

<p:commandButton value="Salvar" action="#{MBaluno.adicionar}"/>

</h:form>

</ui:define>



</ui:composition>

        </h:body>

    </f:view>
</html>